<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>列表页</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<!--标准mui.css-->
		<link rel="stylesheet" href="/public/css/mui.min.css">
		<!--App自定义的css-->
		<link rel="stylesheet" type="text/css" href="/public/css/app.css" />
		<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
	</head>
	<body>
		<header class="mui-bar mui-bar-nav">
			<a href="<?php echo U('join');?>" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">仓库(列表)</h1>
			<a href="<?php echo U('mycangkubaidu');?>" class="mui-qiehuan-icon  mui-pull-right"></a>
		</header>
		<div class="mui-content">
			<div class="mui-select-list">
				<i class="mui-sanjiao"></i>
			<select id="select" class="zulin-list-se" >
				<option <?php if($FiltStr == 'A'): ?>selected<?php endif; ?> value="A">所有仓库</option>
					<option <?php if($FiltStr == 'N'): ?>selected<?php endif; ?> value="N">待审核仓库</option>
				</select>
			</div>	
			<ul class="mui-table-view">
				<?php if(is_array($data)): foreach($data as $key=>$vo): ?><li class="mui-table-view-cell mui-media">
					<a href="javascript:;" class="wspin">
						<?php if($vo[PhotoUrl] == ''): ?><img class="mui-media-object mui-pull-left mui-sc-img" src="http://bpic.588ku.com/element_origin_min_pic/01/47/02/12574338a640011.jpg">
							<?php else: ?>
							<img class="mui-media-object mui-pull-left mui-sc-img" src="<?php echo ($vo["PhotoUrl"]); ?>"><?php endif; ?>

						<div class="mui-media-body mui-sc-list">
							<p class="mui-sc-p"><?php echo ($vo["Name"]); ?></p>
							<p><lable>位置:</lable><i><?php echo ($vo["Name"]); ?></i></p>
							<p><lable>价格:</lable><i><?php echo ($vo["PriceCust"]); ?>元</i></p>
							<?php if($vo['Examined'] == 'FALSE'): ?><button type="button" class="mui-btn mui-dsh-icon"><i></i> 未审核</button>
								<?php else: ?>
								<button type="button" class="mui-btn mui-wcz-icon"><i></i> 已审核</button><?php endif; ?>

						</div>
					</a>
				</li><?php endforeach; endif; ?>
			</ul>
			<button type="button" class="mb20 mui-btn-sz ">添加仓库</button>
		</div>
	</body>
</html>
<script>
	$('#select').change(function()
	{
        var url = window.location.href;
	    var val = $(this).val()
		location.href = url+'&FiltStr='+val
	})
</script>